﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EntityObjects;
using BAL.Controller;

namespace PresentationLayer.View
{
    public partial class Master1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginControl control = new LoginControl();
            Employee emp = (Employee)Session["CurrentUser"];
            if (emp != null)
            {

                lbEmp.Text = " Welcome " + emp.EmpName + " !";
                if (emp.DeptId != "")
                {
                    lbDept.Text =" Department Name : " +control.getDept(emp.DeptId);
                }
            }
        }
    }
}